﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" AutoEventWireup="true"
    CodeFile="DocDepartmentList.aspx.cs" Inherits="Task_BaseDoc_DocDepartmentList"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #DateMenu
        {
            padding: 5px 0 5px 0;
        }
        #menu
        {
            background: #F1EFEF;
            border: solid #CCCCCC 1px;
        }
        #menu ul
        {
            display: block;
            list-style: none;
            margin: 5px;
            padding: 0px;
        }
        #menu ul li
        {
            display: inline;
        }
        #menu ul li a
        {
            color: #000000;
            text-decoration: none;
            padding: 3px;
            font-size: 14px;
        }
        #menu ul li a img
        {
            border: none;
        }
        .jqmWindow
        {
            display: none;
            position: fixed;
            top: 17%;
            left: 50%;
            margin-left: -300px;
            width: 500px;
            background-color: #EEE;
            color: #333;
            border: 1px solid #666;
            padding: 12px;
        }
        .menupath
        {
            color: Black;
            font-size: 14px;
            font-weight: bold;
            padding: 5px;
        }
        .menupath a
        {
            color: Black;
            font-size: 14px;
            font-weight: bold;
        }
        .menupath a:hover
        {
            color: Red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <div>
            <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged"
                DataTextField="ShortName" DataValueField="DepartmentID">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlSection" runat="server" DataTextField="FullName" DataValueField="DepartmentID"
                OnSelectedIndexChanged="ddlSection_SelectedIndexChanged" AutoPostBack="True">
            </asp:DropDownList>
            日期：<asp:DropDownList ID="YearList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="YearList_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="StartMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="StartMonth_SelectedIndexChanged">
            </asp:DropDownList>
            至
            <asp:DropDownList ID="EndMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="EndMonth_SelectedIndexChanged">
            </asp:DropDownList>
            文件总数：<asp:Label ID="lblDocSum" runat="server" Text="0"></asp:Label>
        </div>
        <div style="margin: 6px 0 0 0px">
            <ul class="topmenu">
                <li>主题：
                    <asp:DropDownList ID="ddlSubject" runat="server" AutoPostBack="True" OnTextChanged="ddlSubject_TextChanged">
                    </asp:DropDownList>
                </li>
                <li>
                    <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                </li>
                <li>
                    <asp:LinkButton ID="lbtnSearch" runat="server" OnClick="lbtnSearch_Click">搜索</asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton runat="server" Text="转向" ID="lkbZX" OnClick="lkbZX_Click"></asp:LinkButton>
                </li>
            </ul>
        </div>
        <div id="DateMenu">
        </div>
        <div>
            <asp:GridView ID="gvwFileList" runat="server" AutoGenerateColumns="False" PageSize="20"
                Caption="<span>档案列表</span>" Width="100%" Font-Names="Verdana" Font-Size="12px"
                CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                EnableTheming="False" AllowPaging="True" DataKeyNames="ID" OnRowDataBound="gvwFileList_RowDataBound"
                OnRowCommand="gvwFileList_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                        </ItemTemplate>
                        <ItemStyle Width="3%" Wrap="False" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="名称">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#GetChar(Eval("ID"))%>'></asp:Label>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                            <asp:Label ID="Label2" runat="server" Text='<%# Convert.ToInt32( Eval("Num"))==-1?"":Eval("Num")+"、" %>'></asp:Label>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="re" CommandArgument='<%# Eval("ID") %>'
                                ToolTip='<%#"创建时间"+ Eval("CreateDate") %>' Text='<%# Eval("OldFileName") %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="文件数量">
                        <ItemTemplate>
                           <asp:Label runat="server" ID="lblFileCount"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="12%" Wrap="False" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="FileSize" HeaderText="大小" DataFormatString="{0} KB">
                        <ItemStyle HorizontalAlign="Right" Width="8%" Wrap="False" />
                    </asp:BoundField>
                </Columns>
                <PagerTemplate>
                </PagerTemplate>
                <RowStyle Height="20px" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <uc1:ListPageContral ID="ListPageContral1" OnPageSizeChange="ListPageContral1_PageSizeChange"
            PageSize="20" runat="server" />
    </div>
</asp:Content>
